#include "SpecifierQualifierList.h"
#include "TypeQualifier.h"
#include "TypeSpecifier.h"

SpecifierQualifierList::~SpecifierQualifierList(void)
{
	if(m_pSpecQualList)
		delete m_pSpecQualList;
	if(m_iType == type_specifier)
		delete m_pTSpecifier;
	else
		delete m_pTQualifier;
}

void SpecifierQualifierList::codeGen()
{
	COUT
	if(m_iType == type_specifier)
		m_pTSpecifier->codeGen();
	else
		m_pTQualifier->codeGen();
	if(m_pSpecQualList)
		m_pSpecQualList->codeGen();
}